package com.cloudshop.service.common.config.bean;

import com.cloudshop.service.common.utils.IdWorker;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * 其他类的初始化到Spring容器中.
 *
 * @author 宫新程
 * @since 2019/4/1 9:44
 */
@Configuration
public class BeansConfigBean {

  @Bean
  public IdWorker idWorker() {
    return new IdWorker();
  }

}
